package com.settlement.system.common.enums;

import com.settlement.system.common.base.IBaseEnum;
import lombok.Getter;

/**
 * 账单类型枚举
 *
 * @author haoxr
 * @since 2022/10/14
 */
public enum BillTypeEnum implements IBaseEnum<Integer> {

    RECEIVABLE(1, "应收账单"),
    PAYABLE(2, "应付账单");

    @Getter
    private Integer value;

    @Getter
    private String label;

    BillTypeEnum(Integer value, String label) {
        this.value = value;
        this.label = label;
    }

    public static String getLabel(int value){
        if(value == 1){
            return RECEIVABLE.getLabel();
        }else{
            return PAYABLE.getLabel();
        }
    }
}
